import requst from '../../utils/request.js'
//获取警告记录列表
export function getWarnList(params) {
  return requst({
    url: '/pole/warning/list',
    params
  })
}
//查看警告详情
export function checkWarnList(id) {
  return requst({
    url: `/pole/warning/${id}`
  })
}
//删除警告记录
export function delWarnList(id) {
  return requst({
    url: `/pole/warning/${id}`,
    method: 'delete'
  })
}
//查看警告详情
export function getPole(id) {
  return requst({
    url: `/pole/warning/${id}`
  })
}
